//
//  PostHelper.h
//  jandaobao
//
//  Created by 杨志刚 on 15/5/27.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface PostHelper : NSObject

+(void)post:(NSString *)url : (NSMutableDictionary *) params: (void (^)(id t)) success;
+(void)postAnswer:(NSString *)url :(NSMutableDictionary *)params :(void (^)(id))success;
/**
 *  上传单张图片
 *
 *  @param url     url
 *  @param params  参数字典
 *  @param imgData 图片datra
 *  @param success 成功回调
 */
+(void)postImg:(NSString *)url  :(NSMutableDictionary *)params  :(NSData *)imgData  :(void (^)(id t)) success;
//+(void)postAddActive:(NSString *)url : (NSMutableDictionary *) params: (NSData *) imageData: (void (^)(id t)) success;


+(void)get:(NSString *)url :(NSMutableDictionary *)params :(void (^)(id))success;
+(void)postNoHUD:(NSString *)url :(NSMutableDictionary *)params :(void (^)(id))success;

+(void)postAddTravels:(NSString *)url : (NSMutableDictionary *) params: (NSData *) imageData: (void (^)(id t)) success;

+(void)postAddActive:(NSString *)url : (NSMutableDictionary *) params: (NSString *) fileAddress: (void (^)(id t)) success;

+(void)postAddActiveData:(NSString *)url :(NSMutableDictionary *)params   :(NSData *)imageData     :(void (^)(id t)) success;

/**
 *  上传一个语音类型的数据
 *
 *  @param url       url
 *  @param params    参数字典
 *  @param audioData audioData
 *  @param success   成功回调
 */
+(void)postQuestion:(NSString *)url : (NSMutableDictionary *) params :(NSData *)audioData : (void (^)(id t)) success;
+(void)postImg:(NSString *)url  :(NSMutableDictionary *)params  :(NSData *)imgData :(NSString *)dataParamName  :(void (^)(id t)) success;

@end
